﻿/**
 * Proyecto: Cognitum
 * Global IT Services 2008
 * @author Esanantonio
 */
Cognitum.Polizas.Ramo.Editor = Ext.extend(Karma.EBCard, {

    initComponent: function(){
        Ext.apply(this, {
            sections: [{
                title: 'Datos Ramo',
                items: [{
                    fieldLabel: 'Clave',
                    name: 'Clave'
                }, {
                    fieldLabel: 'Nombre',
                    name: 'Nombre'
                }, {
                    fieldLabel: 'Xtype',
                    name: 'Xtype'
                }, {
                    fieldLabel: 'Division Operativa',
                    name: 'DivisionOperativa',
                    xtype: 'enum.combo',
                    enumName: 'Cognitum.Dominio.Polizas.DivisionOperativaEnum'
                }]
            }, {
                title: 'SubRamos',
                items: [{
					hideLabel: true, 
                    name: 'SubRamo',
                    entityName: 'SubRamos',
                    xtype: 'ag.list',
                    context: 'r.Ramo.Id=?',
                    anchor: '99% 99%'
                }]
            }, {
                xtype: 'aud.editor',
                title: 'Auditoria'
            }]
        });
        
        Cognitum.Polizas.Ramo.Editor.superclass.initComponent.apply(this, arguments);
    }
    
});
Ext.reg('ram.editor', Cognitum.Polizas.Ramo.Editor);
